package org.cookhub.entities.users;

import javax.persistence.Column;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.springframework.roo.addon.entity.RooEntity;
import org.springframework.roo.addon.javabean.RooJavaBean;
import org.springframework.roo.addon.tostring.RooToString;


/**
 * User role. Possible roles:
 * <ul>
 * <li>Administrator</li>
 * <li>User</li>
 * </ul>
 * 
 * @author Piotr 'piter' Hlawski <Piotr.Hlawski@hybris.de>
 * 
 */
@RooJavaBean
@RooToString
@RooEntity
public class UserRole
{

	@NotNull
	@Column(unique = true)
	private Integer id;

	@NotNull
	@Column(unique = true)
	@Size(min = 3, max = 10)
	private String name;
}
